﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BrainMatch
{
    public class ValuesClassify : IWaveClassify
    {
        private WaveManager m_Manager = null;

        public ValuesClassify(WaveManager manager)
        {
            m_Manager = manager;
        }
        public string GetFingerData(BMLib.WaveItem item)
        {
            string result = BMUtility.DoublesToString(item.FingerData);

            return result;
        }

        public List<MatchResult> Match(BMLib.WaveItem item)
        {
            List<MatchResult> result = new List<MatchResult>();
            double min = 999999;
            int id = -1;
            foreach (WaveDataSet.labelsRow row in m_Manager.Dataset.labels)
            {
                //double ds = ComputeDS(datah, datav, row);
                //if (ds < min)
                //{
                //    min = ds;
                //    id = row.name_id;
                //}
            }
            return result;
        }
        //private double ComputeDS(double[] data, WaveDataSet.labelsRow row)
        //{
        //    double[] v=BMUtility.StringToDoubles(row.finger_data
        //    return 0;
        //}
    }
}
